export const constantRouter = [
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    name: "main",
    children: [],
    meta: {
      title: "首页",
    },
  },
  {
    path: '/login',
    name: 'login',
    meta: {title: "登录"},
    component: () => import("@/views/login/index.vue"),
  },
  {
    path: '/403',
    name: '403',
    meta: {title: "403"},
    component: () => import('@/views/403.vue')
  },
  //解决刷新浏览器输出警告问题
  {
    path: '/:catchAll(.*)',
    name: '404',
    meta: {title: "404"},
    hidden: true,
    component: () => import('@/views/404.vue')
  },
]

export const whiteList = [
  '/404','/403','/500','/login'
]